<template>
    <div>
        <p>我是a组件</p>
        <input type="text" v-model="toodList">
        <button type="button" @click="addList">增加</button>
    </div>
</template>
<script>
export default {
    name:'aPage',
    data() {
        return {
            toodList:""
        }
    },
    methods: {
        addList() {
            console.log(this.toodList)
            this.$eventBus.$emit('add',this.toodList);
        }
    }
}
</script>